* {
	margin: 0;
	padding: 0;
}


body {
	/* background-color: rgb(62, 53, 175); */
	margin: 0 auto;
	text-align: center;
}
.box{
	width: 400px;
	height: 300px;
	margin: 100px auto;
	/* border: 1px solid red; */
	background-color: rgb(62, 53, 175);
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}

.btn {
	color: rgb(241, 104, 241);
	/* background-color: rgb(62, 53, 175); */
	border: none;
	z-index: 1;
	border-radius: 4px;
	cursor: pointer;
	outline: 2px solid rgb(62, 53, 175);
	padding: 10px 30px;
	font-size: 18px;
	letter-spacing: 2px;
	position: relative;
	overflow: hidden;
}

.btn::before {
	content: "";
	width: 200%;
	height: 200%;
	background: red;
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: -1;
	transform-origin: left top;
	animation: rotation 1.5s linear infinite;
}

.btn::after {
	content: "";
	position: absolute;
	--gap: 2px;
	width: calc(100% - var(--gap) *2);
	height: calc(100% - var(--gap) *2);
	background-color: #333;
	left: var(--gap);
	top: var(--gap);
	border-radius: inherit;
	z-index: -1;
}

@keyframes rotation {
	to {
		transform: rotate(360deg);
	}
}